from rest_framework import serializers


# 用户
from db.models import XlzUser, XlzBudget


class UserSerializer(serializers.ModelSerializer):

    class Meta:
        model = XlzUser
        fields = ('username', 'title_image')


class BudgetSerializer(serializers.ModelSerializer):
    class Meta:
        model = XlzBudget
        fields = ('budget', 'disburse')

